package cn.xxliang.platapp.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("应用信息-产品-关联表Dto")
public class AppSystemProductReDto {
    @ApiModelProperty(value = "app id",required = true)
    @NotNull(message = "app id不能为空")
    private String appSystemId;

    @ApiModelProperty(value = "产品ID",required = true)
    @NotNull(message = "产品ID不能为空")
    private String platformProductId;

    @ApiModelProperty(value = "删除标识 0-正常 1-删除",required = true)
    @NotNull(message = "删除标识不能为空")
    @Size(min = 1, max = 1, message = "删除标识必须是0或1")
    @Pattern(regexp = "[01]", message = "删除标识必须是0或1")
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    @ApiModelProperty(value = "主键")
    private String appSystemProductId;
}


